<template>

  <a-modal :open="open" :title="title" @ok="handleOk" @cancel="cancel" :footer="null">
    <ws-uploader></ws-uploader>
  </a-modal>
</template>

<script setup name="FileModal">

import WsUploader from '@/components/WsUploader.vue';



//定义弹框关闭 页面要刷新
const emit = defineEmits(['refresh'])
//弹框的开关
const open = ref(false)
//标题
const title=ref('上传')
//设置弹框的开闭 第一个参数是否是是新增  第二个参数是数据
const openModal =async ()=>{
  open.value = true;
}


onMounted(() => {
	//console.log(uploaderRef.value, 'uploaderRef.value');
});


 



//关闭弹框
const cancel = e => {
  open.value = false
}
//提交
const handleOk = async e => {
  

};

//在这里暴露这个方法 在外面调用
defineExpose({ openModal })

</script>

<style scoped>
.ant-form {
  margin-top: 36px;
}
</style>